#include<iostream>
using namespace std;
int mm,dd,yy;
int main()
{
	scanf("%d-%d-%d",&mm,&dd,&yy);
	printf("%02d-%02d-%02d",yy,mm,dd);
	return 0;
}
